package com.taobao.api.extra.model;

import java.util.Date;

/**
 * 调用 taobao.itemstats.get 时（按商品统计），需要传入的参数。
 * 
 * @author ruowang
 * 
 */
public class ItemStatsGetRequest {
	private String fields;                      //返回字段
	private String nick;		                //用户昵称	
	private Date startCreated;				    //开始时间
	private Date endCreated;					//结束时间	
	private Integer pageNo;						//页码
	private String orderBy; 					//统计方式 (目前支持：1.销售量降序 2.销售额降序)
	private Integer pageSize;					//每页条数
	public String getFields() {
		return fields;
	}
	public void setFields(String fields) {
		this.fields = fields;
	}
	public String getNick() {
		return nick;
	}
	public void setNick(String nick) {
		this.nick = nick;
	}
	public Date getStartCreated() {
		return startCreated;
	}
	public void setStartCreated(Date startCreated) {
		this.startCreated = startCreated;
	}
	public Date getEndCreated() {
		return endCreated;
	}
	public void setEndCreated(Date endCreated) {
		this.endCreated = endCreated;
	}
	public Integer getPageNo() {
		return pageNo;
	}
	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}
	public String getOrderBy() {
		return orderBy;
	}
	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	
	public ItemStatsGetRequest withFields(String fields) {
		setFields(fields);
		return this;
	}
	
	public ItemStatsGetRequest withNick(String nick) {
		setNick(nick);
		return this;
	}
	
	public ItemStatsGetRequest withOrderBy(String orderBy) {
		setOrderBy(orderBy);
		return this;
	}
	
	public ItemStatsGetRequest withStartCreated(Date startCreated) {
		setStartCreated(startCreated);
		return this;
	}
	
	public ItemStatsGetRequest withEndCreated(Date endCreated) {
		setEndCreated(endCreated);
		return this;
	}
	
	public ItemStatsGetRequest withPageNo(int pageNo) {
		setPageNo(pageNo);
		return this;
	}
	
	public ItemStatsGetRequest withPageSize(int pageSize) {
		setPageSize(pageSize);
		return this;
	}
}
